package com.lepai.component;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author weihaolong
 * @date 2018-12-04 14:42:00
 * @description
 */
public class ImplementInitializationBean implements InitializingBean, DisposableBean {

    Logger logger = LogManager.getLogger();

    @Override
    public void afterPropertiesSet() throws Exception {
        logger.info("implementInitializationBean afterPropertiesSet");
    }

    @Override
    public void destroy() throws Exception {
        logger.info(getClass() + "implementInitializationBean destroy");
    }
}
